Optimal. Leaf size=172 \[ -\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{2 d e^5 (c+d x)}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d e^5 (c+d x)^3}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5}-\frac{b^2}{12 d e^5 (c+d x)^2}+\frac{2 b^2 \log (c+d x)}{3 d e^5}-\frac{b^2 \log \left (1-(c+d x)^2\right )}{3 d e^5} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.262447, antiderivative size = 172, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 10, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.435, Rules used = {6107, 12, 5916, 5982, 266, 44, 36, 31, 29, 5948} \[ -\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{2 d e^5 (c+d x)}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d e^5 (c+d x)^3}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5}-\frac{b^2}{12 d e^5 (c+d x)^2}+\frac{2 b^2 \log (c+d x)}{3 d e^5}-\frac{b^2 \log \left (1-(c+d x)^2\right )}{3 d e^5} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6107
Rule 12
Rule 5916
Rule 5982
Rule 266
Rule 44
Rule 36
Rule 31
Rule 29
Rule 5948
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{(c e+d e x)^5} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \tanh ^{-1}(x)\right )^2}{e^5 x^5} \, dx,x,c+d x\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \tanh ^{-1}(x)\right )^2}{x^5} \, dx,x,c+d x\right )}{d e^5}\\ &=-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{x^4 \left (1-x^2\right )} \, dx,x,c+d x\right )}{2 d e^5}\\ &=-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{x^4} \, dx,x,c+d x\right )}{2 d e^5}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{x^2 \left (1-x^2\right )} \, dx,x,c+d x\right )}{2 d e^5}\\ &=-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d e^5 (c+d x)^3}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{x^2} \, dx,x,c+d x\right )}{2 d e^5}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{1-x^2} \, dx,x,c+d x\right )}{2 d e^5}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{x^3 \left (1-x^2\right )} \, dx,x,c+d x\right )}{6 d e^5}\\ &=-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d e^5 (c+d x)^3}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{2 d e^5 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{(1-x) x^2} \, dx,x,(c+d x)^2\right )}{12 d e^5}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{x \left (1-x^2\right )} \, dx,x,c+d x\right )}{2 d e^5}\\ &=-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d e^5 (c+d x)^3}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{2 d e^5 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{b^2 \operatorname{Subst}\left (\int \left (\frac{1}{1-x}+\frac{1}{x^2}+\frac{1}{x}\right ) \, dx,x,(c+d x)^2\right )}{12 d e^5}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{(1-x) x} \, dx,x,(c+d x)^2\right )}{4 d e^5}\\ &=-\frac{b^2}{12 d e^5 (c+d x)^2}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d e^5 (c+d x)^3}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{2 d e^5 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{b^2 \log (c+d x)}{6 d e^5}-\frac{b^2 \log \left (1-(c+d x)^2\right )}{12 d e^5}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{1-x} \, dx,x,(c+d x)^2\right )}{4 d e^5}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,(c+d x)^2\right )}{4 d e^5}\\ &=-\frac{b^2}{12 d e^5 (c+d x)^2}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d e^5 (c+d x)^3}-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{2 d e^5 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d e^5 (c+d x)^4}+\frac{2 b^2 \log (c+d x)}{3 d e^5}-\frac{b^2 \log \left (1-(c+d x)^2\right )}{3 d e^5}\\ \end{align*}
Mathematica [A] time = 0.267043, size = 218, normalized size = 1.27 \[ -\frac{\frac{3 a^2}{(c+d x)^4}+\frac{2 b \tanh ^{-1}(c+d x) \left (3 a+b \left (9 c^2 d x+3 c^3+9 c d^2 x^2+c+3 d^3 x^3+d x\right )\right )}{(c+d x)^4}+\frac{6 a b}{c+d x}+\frac{2 a b}{(c+d x)^3}+b (3 a+4 b) \log (-c-d x+1)-b (3 a-4 b) \log (c+d x+1)-\frac{3 b^2 \left (6 c^2 d^2 x^2+4 c^3 d x+c^4+4 c d^3 x^3+d^4 x^4-1\right ) \tanh ^{-1}(c+d x)^2}{(c+d x)^4}+\frac{b^2}{(c+d x)^2}-8 b^2 \log (c+d x)}{12 d e^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.076, size = 431, normalized size = 2.5 \begin{align*} -{\frac{{a}^{2}}{4\,d{e}^{5} \left ( dx+c \right ) ^{4}}}-{\frac{{b}^{2} \left ({\it Artanh} \left ( dx+c \right ) \right ) ^{2}}{4\,d{e}^{5} \left ( dx+c \right ) ^{4}}}-{\frac{{b}^{2}{\it Artanh} \left ( dx+c \right ) \ln \left ( dx+c-1 \right ) }{4\,d{e}^{5}}}-{\frac{{b}^{2}{\it Artanh} \left ( dx+c \right ) }{6\,d{e}^{5} \left ( dx+c \right ) ^{3}}}-{\frac{{b}^{2}{\it Artanh} \left ( dx+c \right ) }{2\,d{e}^{5} \left ( dx+c \right ) }}+{\frac{{b}^{2}{\it Artanh} \left ( dx+c \right ) \ln \left ( dx+c+1 \right ) }{4\,d{e}^{5}}}-{\frac{{b}^{2} \left ( \ln \left ( dx+c-1 \right ) \right ) ^{2}}{16\,d{e}^{5}}}+{\frac{{b}^{2}\ln \left ( dx+c-1 \right ) }{8\,d{e}^{5}}\ln \left ({\frac{1}{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) }+{\frac{{b}^{2}\ln \left ( dx+c+1 \right ) }{8\,d{e}^{5}}\ln \left ( -{\frac{dx}{2}}-{\frac{c}{2}}+{\frac{1}{2}} \right ) }-{\frac{{b}^{2}}{8\,d{e}^{5}}\ln \left ( -{\frac{dx}{2}}-{\frac{c}{2}}+{\frac{1}{2}} \right ) \ln \left ({\frac{1}{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) }-{\frac{{b}^{2} \left ( \ln \left ( dx+c+1 \right ) \right ) ^{2}}{16\,d{e}^{5}}}-{\frac{{b}^{2}\ln \left ( dx+c-1 \right ) }{3\,d{e}^{5}}}-{\frac{{b}^{2}}{12\,d{e}^{5} \left ( dx+c \right ) ^{2}}}+{\frac{2\,{b}^{2}\ln \left ( dx+c \right ) }{3\,d{e}^{5}}}-{\frac{{b}^{2}\ln \left ( dx+c+1 \right ) }{3\,d{e}^{5}}}-{\frac{ab{\it Artanh} \left ( dx+c \right ) }{2\,d{e}^{5} \left ( dx+c \right ) ^{4}}}-{\frac{ab\ln \left ( dx+c-1 \right ) }{4\,d{e}^{5}}}-{\frac{ab}{6\,d{e}^{5} \left ( dx+c \right ) ^{3}}}-{\frac{ab}{2\,d{e}^{5} \left ( dx+c \right ) }}+{\frac{ab\ln \left ( dx+c+1 \right ) }{4\,d{e}^{5}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.1316, size = 828, normalized size = 4.81 \begin{align*} -\frac{1}{12} \,{\left (d{\left (\frac{2 \,{\left (3 \, d^{2} x^{2} + 6 \, c d x + 3 \, c^{2} + 1\right )}}{d^{5} e^{5} x^{3} + 3 \, c d^{4} e^{5} x^{2} + 3 \, c^{2} d^{3} e^{5} x + c^{3} d^{2} e^{5}} - \frac{3 \, \log \left (d x + c + 1\right )}{d^{2} e^{5}} + \frac{3 \, \log \left (d x + c - 1\right )}{d^{2} e^{5}}\right )} + \frac{6 \, \operatorname{artanh}\left (d x + c\right )}{d^{5} e^{5} x^{4} + 4 \, c d^{4} e^{5} x^{3} + 6 \, c^{2} d^{3} e^{5} x^{2} + 4 \, c^{3} d^{2} e^{5} x + c^{4} d e^{5}}\right )} a b - \frac{1}{48} \,{\left (d^{2}{\left (\frac{3 \,{\left (d^{2} x^{2} + 2 \, c d x + c^{2}\right )} \log \left (d x + c + 1\right )^{2} + 3 \,{\left (d^{2} x^{2} + 2 \, c d x + c^{2}\right )} \log \left (d x + c - 1\right )^{2} + 2 \,{\left (8 \, d^{2} x^{2} + 16 \, c d x + 8 \, c^{2} - 3 \,{\left (d^{2} x^{2} + 2 \, c d x + c^{2}\right )} \log \left (d x + c - 1\right )\right )} \log \left (d x + c + 1\right ) + 16 \,{\left (d^{2} x^{2} + 2 \, c d x + c^{2}\right )} \log \left (d x + c - 1\right ) + 4}{d^{5} e^{5} x^{2} + 2 \, c d^{4} e^{5} x + c^{2} d^{3} e^{5}} - \frac{32 \, \log \left (d x + c\right )}{d^{3} e^{5}}\right )} + 4 \, d{\left (\frac{2 \,{\left (3 \, d^{2} x^{2} + 6 \, c d x + 3 \, c^{2} + 1\right )}}{d^{5} e^{5} x^{3} + 3 \, c d^{4} e^{5} x^{2} + 3 \, c^{2} d^{3} e^{5} x + c^{3} d^{2} e^{5}} - \frac{3 \, \log \left (d x + c + 1\right )}{d^{2} e^{5}} + \frac{3 \, \log \left (d x + c - 1\right )}{d^{2} e^{5}}\right )} \operatorname{artanh}\left (d x + c\right )\right )} b^{2} - \frac{b^{2} \operatorname{artanh}\left (d x + c\right )^{2}}{4 \,{\left (d^{5} e^{5} x^{4} + 4 \, c d^{4} e^{5} x^{3} + 6 \, c^{2} d^{3} e^{5} x^{2} + 4 \, c^{3} d^{2} e^{5} x + c^{4} d e^{5}\right )}} - \frac{a^{2}}{4 \,{\left (d^{5} e^{5} x^{4} + 4 \, c d^{4} e^{5} x^{3} + 6 \, c^{2} d^{3} e^{5} x^{2} + 4 \, c^{3} d^{2} e^{5} x + c^{4} d e^{5}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.41814, size = 1181, normalized size = 6.87 \begin{align*} -\frac{24 \, a b d^{3} x^{3} + 24 \, a b c^{3} + 4 \,{\left (18 \, a b c + b^{2}\right )} d^{2} x^{2} + 4 \, b^{2} c^{2} + 8 \, a b c + 8 \,{\left (9 \, a b c^{2} + b^{2} c + a b\right )} d x - 3 \,{\left (b^{2} d^{4} x^{4} + 4 \, b^{2} c d^{3} x^{3} + 6 \, b^{2} c^{2} d^{2} x^{2} + 4 \, b^{2} c^{3} d x + b^{2} c^{4} - b^{2}\right )} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 12 \, a^{2} - 4 \,{\left ({\left (3 \, a b - 4 \, b^{2}\right )} d^{4} x^{4} + 4 \,{\left (3 \, a b - 4 \, b^{2}\right )} c d^{3} x^{3} + 6 \,{\left (3 \, a b - 4 \, b^{2}\right )} c^{2} d^{2} x^{2} + 4 \,{\left (3 \, a b - 4 \, b^{2}\right )} c^{3} d x +{\left (3 \, a b - 4 \, b^{2}\right )} c^{4}\right )} \log \left (d x + c + 1\right ) - 32 \,{\left (b^{2} d^{4} x^{4} + 4 \, b^{2} c d^{3} x^{3} + 6 \, b^{2} c^{2} d^{2} x^{2} + 4 \, b^{2} c^{3} d x + b^{2} c^{4}\right )} \log \left (d x + c\right ) + 4 \,{\left ({\left (3 \, a b + 4 \, b^{2}\right )} d^{4} x^{4} + 4 \,{\left (3 \, a b + 4 \, b^{2}\right )} c d^{3} x^{3} + 6 \,{\left (3 \, a b + 4 \, b^{2}\right )} c^{2} d^{2} x^{2} + 4 \,{\left (3 \, a b + 4 \, b^{2}\right )} c^{3} d x +{\left (3 \, a b + 4 \, b^{2}\right )} c^{4}\right )} \log \left (d x + c - 1\right ) + 4 \,{\left (3 \, b^{2} d^{3} x^{3} + 9 \, b^{2} c d^{2} x^{2} + 3 \, b^{2} c^{3} + b^{2} c +{\left (9 \, b^{2} c^{2} + b^{2}\right )} d x + 3 \, a b\right )} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )}{48 \,{\left (d^{5} e^{5} x^{4} + 4 \, c d^{4} e^{5} x^{3} + 6 \, c^{2} d^{3} e^{5} x^{2} + 4 \, c^{3} d^{2} e^{5} x + c^{4} d e^{5}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.64732, size = 608, normalized size = 3.53 \begin{align*} \frac{{\left (3 \, b^{2} \log \left (\frac{\frac{e}{d x e + c e} + 1}{\frac{e}{d x e + c e} - 1}\right )^{2} - \frac{12 \, b^{2} e \log \left (\frac{\frac{e}{d x e + c e} + 1}{\frac{e}{d x e + c e} - 1}\right )}{d x e + c e} - 12 \, a b \log \left (-\frac{e}{d x e + c e} + 1\right ) - 16 \, b^{2} \log \left (-\frac{e}{d x e + c e} + 1\right ) + 12 \, a b \log \left (-\frac{e}{d x e + c e} - 1\right ) - 16 \, b^{2} \log \left (-\frac{e}{d x e + c e} - 1\right ) - \frac{24 \, a b e}{d x e + c e} - \frac{4 \, b^{2} e^{2}}{{\left (d x e + c e\right )}^{2}} - \frac{4 \, b^{2} e^{3} \log \left (\frac{\frac{e}{d x e + c e} + 1}{\frac{e}{d x e + c e} - 1}\right )}{{\left (d x e + c e\right )}^{3}} - \frac{3 \, b^{2} e^{4} \log \left (\frac{\frac{e}{d x e + c e} + 1}{\frac{e}{d x e + c e} - 1}\right )^{2}}{{\left (d x e + c e\right )}^{4}} - \frac{8 \, a b e^{3}}{{\left (d x e + c e\right )}^{3}} - \frac{12 \, a b e^{4} \log \left (\frac{\frac{e}{d x e + c e} + 1}{\frac{e}{d x e + c e} - 1}\right )}{{\left (d x e + c e\right )}^{4}} - \frac{12 \, a^{2} e^{4}}{{\left (d x e + c e\right )}^{4}}\right )} e^{\left (-5\right )}}{48 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]